#include "UiVPListEnumWnd.h"
#ifdef MERGER_APP_TO_SHELL
	extern HINSTANCE g_SDHResModuleHandle;
#endif
UiVPListEnumWnd::UiVPListEnumWnd()
{
}

UiVPListEnumWnd::~UiVPListEnumWnd()
{
}

BOOL UiVPListEnumWnd::InitUiWin(void)
{
	BOOL bRtn = FALSE;
	LoadiInterItem();
	return bRtn;
}

void UiVPListEnumWnd::PaintWin(HDC hdc, RECT* prcWin, RECT* prcUpdate)
{
//	m_ControlWndBG->Draw(hdc, prcWin, false, false);
}

int UiVPListEnumWnd::OnLButtonDown(UINT fwKeys, int xPos, int yPos)
{
	return UiWin::OnLButtonDown(fwKeys, xPos, yPos);

}

int UiVPListEnumWnd::OnLButtonUp(UINT fwKeys, int xPos, int yPos)
{
	return UiWin::OnLButtonUp(fwKeys, xPos, yPos);

}

void UiVPListEnumWnd::LoadiInterItem()
{
//jdhuang 20120818
#ifndef MERGER_APP_TO_SHELL	
//	m_ControlWndBG = ImagingHelper::GetImageObject(MzGetInstanceHandle(), 1065);
#else
//	m_ControlWndBG = ImagingHelper::GetImageObject(g_SDHResModuleHandle, 3065);
#endif
	RECT rtText = {55, 5, 290, 53};
	RECT rtLeftIcon = {10, 14, 40, 44};
	RECT rtDownIcon = {10, 14, 35, 39};
	RECT rtRightIcon = {10, 14, 35, 39};
//	m_BrowserList.SetPos(0,119, 302, 357);
	m_BrowserList.SetPos(0,0, 302, 367);
	m_BrowserList.SetID(3300);
	m_BrowserList.EnableScrollBarV(true);
	m_BrowserList.EnableNotifyMessage(true);
	m_BrowserList.SetItemHeight(58);
	m_BrowserList.SetTextColor(RGB(255,255,255));
	m_BrowserList.SetTextRect(&rtText);
#ifndef MERGER_APP_TO_SHELL	
	m_BrowserList.SetVideoLeftIconProperty(2026, &rtLeftIcon);
	m_BrowserList.SetDownIconProperty(2022, &rtDownIcon);
	m_BrowserList.SetRightIconProperty(2023, &rtRightIcon);
#else
	m_BrowserList.SetVideoLeftIconProperty(7126, &rtLeftIcon);
	m_BrowserList.SetDownIconProperty(7122, &rtDownIcon);
	m_BrowserList.SetRightIconProperty(7123, &rtRightIcon);
#endif
	AddChild(&m_BrowserList);
}

BOOL UiVPListEnumWnd::InitImages()
{
	return TRUE;
}
void UiVPListEnumWnd::DeleteImages()
{
}